Ext.define('Admin.view.compete.Compete', {
    extend: 'Admin.ux.PageGrid',
    xtype: 'compete-view',
    title: '询价采购管理',
    viewModel: {
        stores: {
            data: {
                type: 'compete-store',
                autoLoad: true
            }
        }
    },

    controller:'tender',

    columns: [
        { xtype:'gridcolumnview', text: '序号', dataIndex: 'id',width:55},
        { xtype:'gridcolumnview', text: '询价单编号', dataIndex: 'num',width: 255},
        { xtype:'gridcolumnview', text: '询价单名称', dataIndex: 'name',width: 355},
        { xtype:'gridcolumnview',text: '采购组织', dataIndex: 'people',width: 305},
        { xtype:'gridcolumnview', text: '采购方式', dataIndex: 'fang',width: 205},
        { xtype:'gridcolumnview', text: '创建时间', dataIndex: 'create_time',width: 110},
        { xtype:'gridcolumnview', text: '报价人数', dataIndex: 'count',width: 205},
        { text: '状态', dataIndex: 'state', width:105,renderer:function(value){
            return "<font color='green'><b>审核通过</b></font>";
        }},
        {
            menuDisabled: true,
            sortable: false,
            xtype: 'actioncolumn',
            width: 55,
            text:'操作'
        }
    ],
    tbar:[
        {
            xtype : 'keysearchfield'
        }
    ]
});